<?php

declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://hyperf.wiki
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */
return [
    'default' => [
        'host'  => REDIS['REDIS_HOST'],
        'auth'  => REDIS['REDIS_AUTH'],
        'port'  => REDIS['REDIS_PORT'],
        'db'    => REDIS['REDIS_DB'],
        'pool'  => [
            'min_connections'   => REDIS['POOL']['MIN_CONNECTIONS'],
            'max_connections'   => REDIS['POOL']['MAX_CONNECTIONS'],
            'connect_timeout'   => REDIS['POOL']['CONNECT_TIMEOUT'],
            'wait_timeout'      => REDIS['POOL']['WAIT_TIMEOUT'],
            'heartbeat'         => REDIS['POOL']['HEARTBEAT'],
            'max_idle_time'     => REDIS['POOL']['REDIS_MAX_IDLE_TIME'],
        ],
        'cluster'   => [
            'enable'    => REDIS['CLUSTER']['ENABLE'],
            'name'      => REDIS['CLUSTER']['NAME'],
            'seeds'     => REDIS['CLUSTER']['SEEDS'],
        ]
    ],
];
